/*
 * This file is part of the Form O' Matic package
 * Copyright (c) 2009  <Form O' Matic Team>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * $Author: eduardo.marcolino $
 * $Rev: 9 $
 * $Date: 2009-07-17 02:13:24 +0000 (Fri, 17 Jul 2009) $
 */


package com.googlecode.formomatic;

import com.googlecode.formomatic.bean.Config;
import com.googlecode.formomatic.exception.MalformedConfException;
import java.io.InputStream;
import org.ho.yaml.Yaml;

public class Builder {
    public static Config prepare(InputStream is) throws MalformedConfException{
       return new ConfigParser(Yaml.load(is)).getConfig();
    }
}
